﻿Public Class Form3

    Private Sub ΑρχικήToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ΑρχικήToolStripMenuItem.Click
        Form1.Show()
        Me.Hide()
    End Sub

    Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

    End Sub

    Private Sub FoodsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Me.Validate()
        Me.FoodsBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.RecipiesDataSet)

    End Sub

    Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'RecipiesDataSet.Sweets' table. You can move, or remove it, as needed.
        Me.SweetsTableAdapter.Fill(Me.RecipiesDataSet.Sweets)
        'TODO: This line of code loads data into the 'RecipiesDataSet.Foods' table. You can move, or remove it, as needed.
        Me.FoodsTableAdapter.Fill(Me.RecipiesDataSet.Foods)

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FoodsDataGridView.DataSource = Me.RecipiesDataSet.Foods.Select(" SELECT * FROM Foods WHERE [Food ID] LIKE & TextBox1.Text")

    End Sub

    Private Sub ΖαχαροπλαστικήToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ΖαχαροπλαστικήToolStripMenuItem.Click
        Form4.Show()
        Me.Hide()

    End Sub
End Class